<style>
    .tbl td, .tbl th {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 12px;
        line-height: 20px;
        color: rgb(0, 0, 0);
        text-decoration: none;
        word-break: break-all;
    }

    .blue {
        color: blue;
    }

    .tbl a {
        text-decoration: none;
    }

    .red {
        color: red;
    }

    .Main_List_Table {
        border-left: 1px solid rgb(236, 236, 236);
        border-top: 1px solid rgb(236, 236, 236);
    }

    .Main_List_Table_Tr1 {
        background-color: rgb(246, 246, 246);
    }

    .Main_List_Table td {
        border-right: 1px solid rgb(236, 236, 236);
        border-bottom: 1px solid rgb(236, 236, 236);
        padding: 2px;
        text-align: center;
        word-break: break-all;
    }

    .Main_List_Table_Tr1 td {
        font-weight: bold;
    }

    body, td, th {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 12px;
        line-height: 20px;
        color: rgb(0, 0, 0);
        text-decoration: none;
        word-break: break-all;
    }

    .other {
        color: rgb(153, 153, 153);
    }

    .Main_List_Table td {
        border-right: 1px solid rgb(236, 236, 236);
        border-bottom: 1px solid rgb(236, 236, 236);
        padding: 2px;
        text-align: center;
    }

    .Main_List_Table_Tr_Over {
        background-color: rgb(228, 242, 255);
    }
</style>
<div class="bjui-pageContent">
  <div style="margin-bottom:10px; overflow:hidden;">
    <div style="float:left;font-size: 16px;"> 订 单 号： <span id="uc_Order_Top_lbl_OrderId" style="font-size: 16px;">{$info.order_no}</span>&nbsp;&nbsp;&nbsp;
      生成时间：<span id="uc_Order_Top_lbl_Order_Time" style="font-size: 16px;">{$info.create_time|time_format}</span>&nbsp;&nbsp;&nbsp;
      
      订单状态：<font class="size18 red"><strong><span id="uc_Order_Top_lbl_oState" style="font-size: 16px;">{$info.order_status}</span></strong></font> </div>
    <if condition="$info.status elt WAREHOUSE_SEND_OUT && I('isPrinter')"> <a class="btn btn-orange" style="float: right;" href="{:U('order/returnToState?orderId='.$info['order_id'])}"  data-toggle="doajax" data-icon="undo" data-confirm-msg="确定讲订单状态返回上一级？">返回上一级</a> </if>
  </div>
  <form action="ajaxDone1.html" id="j_form_form" class="pageForm" data-toggle="validate" method="post">
    <div style="margin:15px auto 0; width:100%">
      <fieldset>
      <legend>订单详情</legend>
      <!-- Tabs -->
      <ul class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#detailOrderHome{$info.order_id}" role="tab" data-toggle="tab">订单详情</a></li>
        <if condition="$info.status egt OUTBOUND_CREATE_SUCCESS"> </if>
        <if condition="$info.status lt WAREHOUSE_SEND_OUT ">
          <li><a href="{:U('cancelOrder?orderId='.$info['order_id'].'&navTabId=Order'.$info['order_id'])}"
               role="tab" data-toggle="ajaxtab" data-target="#detailOrderCancel{$info.order_id}" data-reload="false">取消订单</a></li>
        </if>
        <li><a href="{:U('deliveryMessage?orderId='.$info['order_id'])}" role="tab" data-toggle="ajaxtab" data-target="#deliveryMessage{$info.order_id}" data-reload="false">发货信息</a></li>
        <if condition="$info.status egt WAREHOUSE_SEND_OUT && I('isAfterSale')">
          <li> <a href="{:U('AfterSales/record?orderId='.$info['order_id'].'&navTabId=Order'.$info['order_id'])}"
               role="tab" data-toggle="ajaxtab" data-target="#detailOrderAfterSale{$info.order_id}" data-reload="false">售后记录</a></li>
        </if>
      </ul>
      <div style="overflow:hidden; border:1px solid #ddd; border-top:none;">
        <div style="float: left;border: none;display: block;overflow: hidden;width: 15%;">
          <table width="100%" border="0" cellspacing="0" cellpadding="10">
            <tbody>
              <tr>
                <td valign="top"><if condition="$order_message neq '' or $my_message neq ''"> <span id="uc_Order_Left_lbl_Show_Order_Msg">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tbody>
                        <tr>
                          <td align="right"><i class="fa fa-user-md"></i><a href="{:U('Order/messageList?&orderId='.$info['order_id'])}"  role="tab" data-toggle="ajaxtab" data-target="#detailOrderEdit{$info.order_id}" data-reload="false"><b>查看所有留言</b></a></td>
                        </tr>
                        <tr>
                          <td><b class="red">我的留言：</b><br>
                            <div style="border:1px solid #00A8FF; padding:5px; background-color:#E2F5FF"> <span id="uc_Order_Left_lbl_Last_Fxy_Msg">
                              <if condition="$my_message neq ''"> {$my_message.content}
                                <div class="other">{:date('Y-m-d H:i:s', $my_message['update_time'])}</div>
                                <else/>
                                未回复！ </if>
                              </span> </div></td>
                        </tr>
                        <tr>
                          <td height="10"></td>
                        </tr>
                        <if condition="$order_message neq ''">
                          <tr>
                            <td><b class="red">渠道商的留言：</b><br>
                              <div style="border:1px solid #EEEEDD; padding:5px; background-color:#FFFFEE"><span id="uc_Order_Left_lbl_Last_Fxs_Msg">{$order_message.user_name} {$order_message.content}
                                <div class="other">{:date('Y-m-d H:i:s', $order_message['update_time'])}</div>
                                </span></div></td>
                          </tr>
                        </if>
                      </tbody>
                    </table>
                    </span> </if>
                  <div align="left"
                     style="margin-bottom:10px; padding-top:5px;"> <span
                                                id="uc_Order_Left_lbl_Add_Order_Msg"> <i
                                                    class="fa fa-pencil-square-o"></i> <a
                                                    href="{:U('Order/check_message?&orderId='.$info['order_id'])}"
                                                    data-toggle="dialog" data-width="450"
                                                    data-height="200"
                                                    data-id="dialog-normal" data-mask="true"
                                                    data-title="订单留言">我要留言</a> &nbsp;
                    <if condition="$info.status eq ORDER_CREATE_SUCCESS "> | <i class="fa fa-pencil-square-o" 
                      <php>echo display(CONTROLLER_NAME.'/editOrder');</php>
                      ></i> <a 
                      <php>echo display(CONTROLLER_NAME.'/editOrder');</php>
                      href="{:U('Order/editOrder?&orderId='.$info['order_id'])}"
                      role="tab"
                      data-toggle="ajaxtab" data-target="#detailOrderEdit{$info.order_id}" data-reload="false">编辑订单</a> &nbsp; </if>
                    </span> </div>
                  <table width="100%" border="0" cellspacing="0"
                       cellpadding="0"
                       style="margin-top:20px;">
                    <tbody>
                      <tr>
                        <td><strong>顾客信息</strong> ： </td>
                      </tr>
                      <tr>
                        <td><span id="uc_Order_Left_C_Name">{$info.user_name}</span> </td>
                      </tr>
                      <tr>
                        <td><font class="blue">手机：</font> <span
                                                            id="uc_Order_Left_C_Mtel">
                          <label id="lblMtel">{$info.mobile_phone}</label>
                          </span> </td>
                      </tr>
                      <tr>
                        <td><font class="blue">电话：</font> <span
                                                            id="uc_Order_Left_C_Tel">
                          <label id="lblCtel">{$info.home_phone}</label>
                          </span> </td>
                      </tr>
                      <tr>
                        <td><font class="blue">地址：</font> <span
                                                            id="uc_Order_Left_C_Address">{$info.address}</span> </td>
                      </tr>
                      <tr>
                        <td><font class="blue">邮编：</font> <span
                                                            id="uc_Order_Left_C_Postcode">{$info.zip_code}</span> </td>
                      </tr>
                      <tr>
                        <td height="10"></td>
                      </tr>
                      <tr>
                        <td><strong>网店订单号</strong> ： <span
                                                            id="uc_Order_Left_Exp_Name">{$info.order_sn}</span> </td>
                      </tr>
                      <tr>
                        <td><strong>订单人编号</strong> ： <span
                                                            id="uc_Order_Left_Exp_Name">{$info.user_order_sn}</span> </td>
                      </tr>
                      <tr>
                        <td><strong>渠道</strong> ： <span
                                                            id="uc_Order_Left_Exp_Name">{$info.channel}</span> </td>
                      </tr>
                      <tr>
                        <td><strong>选择快递</strong> ： <span
                                                            id="uc_Order_Left_Exp_Name">{$info.express_name}</span> </td>
                      </tr>
                      <tr>
                        <td><strong>应收运费</strong> ： <font class="red"><b><span
                                    id="uc_Order_Left_Exp_Price">0.00</span></b></font> 元 </td>
                      </tr>
                      <tr>
                        <td><span
                                                            id="uc_Order_Left_lbl_eShop_Name"> <b>销售网店</b> ： <a href="{$info.bank_website}" target="_blank">{$info.bank_name}</a> </span> </td>
                      </tr>
                      <tr>
                        <td><strong>客服名称</strong> ： <span id="uc_Order_Left_Exp_Name">{$info.customer_service}</span> </td>
                      </tr>
                      <tr style="display:">
                        <td><span id="uc_Order_Left_lbl_CodId"></span> </td>
                      </tr>
                      <tr>
                        <td height="10"></td>
                      </tr>
                      <tr>
                        <td><strong>审单留言</strong> ：{$info.check_message} </td>
                      </tr>
                      <tr>
                        <td style="word-break:break-all;"><span id="uc_Order_Left_C_Remark">发票({$info.invoice_type}):&nbsp;{$info.invoice_content}</span> </td>
                      </tr>
                    </tbody>
                  </table></td>
              </tr>
            </tbody>
          </table>
        </div>
        <!-- Tab panes -->
        <div class="tab-content" style="float:left;width: 84%;border-radius: 0px;border: none;">
          <!-- 订单详情 -->
          <div class="tab-pane fade active in" id="detailOrderHome{$info.order_id}">
            <!-- 订单详情 -->
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1" bgcolor="#C9C9C9"></td>
                <td valign="top" style="padding-left: 20px;padding-right: 20px;"><div id="divProItemInfo">
                    <if condition="$info.outbound_sn neq  ''"> <b>出库单：{$info.outbound_sn}
                      <if condition="$info.status eq '8' ">(取消)
                        <else />
                        (已生成)</if>
                      &nbsp;&nbsp;&nbsp;&nbsp;物流信息：{$info.express_name}[{$info.courie_number}]</b> </if>
                   	 <div>订单商品列表：
					 <if condition="$info.status eq ORDER_CREATE_SUCCESS ">
					 <a  <php>echo display(CONTROLLER_NAME.'/searchGoods');</php> data-title="订单管理-添加商品" data-mask="true" data-id="dialog-addGoods" data-height="400"
											   data-width="800" data-toggle="dialog" class="btn btn-green"
											   href="{:U('searchGoods?orderId='.$info['order_id'].'&orderGoodsId='.$goods['order_goods_id'].'&orderStatus=10')}">继续添加商品</a>
					 </if>					   
					</div>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0"
               class="Main_List_Table" rules="none" style="border:1px solid #ddd;margin-top: 10px;">
                      <tbody>
                        <tr class="Main_List_Table_Tr1">
                          <td width="18%">商品名称</td>
                          <td width="18%">商品结算价</td>
                          <td width="18%">商品数量</td>
                          <td>颜色规格</td>
                        </tr>
                        <?php foreach($info['orderList'] as $goods):?>
                        <!--一条产品-->
                        <tr onmouseover="this.className='Main_List_Table_Tr_Over'"
                onmouseout="this.className='Main_List_Table_Tr_Out'"
                class="Main_List_Table_Tr_Over">
                          <td><img
                                src="{$goods.goods_img}"
                                width="80" height="80"> <br>
                            {$goods.goods_name} <br>
                            货号：{$goods.goods_sn}
                            <if condition="$info.status eq ORDER_CREATE_SUCCESS "> <br />
                              <a  
                              <php>echo display(CONTROLLER_NAME.'/delGoods');</php>
                              data-title="订单管理删除商品"  data-id="dialog-addGoods"  data-toggle="doajax"
                              href="{:U('delGoods?orderId='.$info['order_id'].'&orderGoodsId='.$goods['order_goods_id'].'&barCodeId='.$goods['bar_code_id'].'&orderStatus=10')}">删除商品</a> </if>
                            <br></td>
                          <td> 网店销售价 <br>
                            {$goods.goods_price} </td>
                          <td>{$goods.goods_number}</td>
                          <td> 颜色：{$goods.color_name}，规格：{$goods.spec_name} <br>
                            条码：{$goods.bar_code}
                            <if condition="$info.status eq ORDER_CREATE_SUCCESS "> <br />
                              <a  
                              <php>echo display(CONTROLLER_NAME.'/modifyBarCode');</php>
                              href="{:U('Order/modifyGoodsSpec?&orderId='.$info['order_id'].'&order_goods_id='.$goods['order_goods_id'])}" data-toggle="dialog" data-width="600" data-height="300" data-id="dialog-normal" data-mask="true" data-title="修改颜色规格">修改颜色规格</a> </if>
                          </td>
                        </tr>
                        <!--一条产品-->
                        <?php endforeach;?>
                      </tbody>
                    </table>
                    <div style="padding-top: 10px;"> <font class="red"><b>提示</b> ：</font> 该订单商品数量： <font
                    class="red"> <span
                                        id="lbl_Order_Pro_Count">{$info.order_number}</span> </font> 件,金额合计： <font
                    class="red"> <span
                                        id="lbl_Order_Ck_Price">{$info.amount}</span> </font> 元，实际快递费： <font class="red"> <span
                                        id="lbl_Total_Exp_Price">0.00</span> </font> 元。 </div>
                  </div>
                  <div style="margin: 10px; margin-left:0px;"> <span id="lbl_Exp_Cod_Price"></span> <br>
                    <p style="margin-bottom: 0px;">买家留言： <span id="lbl_C_Remark">{$info.message}</span></p>
                    <br>
                    <p style="margin-bottom: 0px;">卖家备注： <span id="lbl_O_Remark">{$info.seller_note}</span></p>
                    <br>
                    <p>发票信息： <span id="lbl_Invoice_Info">
                      <?php if($info['invoice_type'] || $info['invoice_title']):?>
                      发票类型：{$info.invoice_type}
                      发票抬头：{$info.invoice_title}
                      <!--发票内容：{$info.invoice_content}-->
                      <?php else:?>
                      无需发票
                      <?php endif;?>
                      </span></p>
                  </div></td>
              </tr>
            </table>
            <!-- END订单详情 -->
          </div>
          <!-- END订单详情 -->
          <!-- 取消订单 -->
          <div class="tab-pane fade" id="detailOrderCancel{$info.order_id}"></div>
          <!-- 售后记录 -->
          <div class="tab-pane fade" id="detailOrderAfterSale{$info.order_id}"></div>
          <!-- 发货信息 -->
          <div class="tab-pane fade" id="deliveryMessage{$info.order_id}"></div>
          <!-- 编辑订单 -->
          <div class="tab-pane fade" id="detailOrderEdit{$info.order_id}"></div>
        </div>
      </div>
      </fieldset>
    </div>
  </form>
</div>
